<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="/Public/Home/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Public/Home/css/site.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="/Public/Home/js/bootstrap.min.js"></script>
    <!-- 百度统计 -->
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?c405a21f6948b611229bdf8570025f78";
            var s = document.getElementsByTagName("script")[0]; 
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <title>印海-数据检索</title>
</head>
<body>
    <div class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php echo U('Home/Index/index');?>">平湖玺印篆刻博物馆</a>
            </div>
        </div>
    </div>
<div class="row">
    <div class="col-md-8 col-md-offset-2">
        <form class="form-horizontal index" role="form" action="<?php echo U('result');?>" method="post" id="form_search">
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="yw2">印文</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" data-val="true" data-val-required="请输入印文！" id="yw2" name="yw2" type="text" placeholder="请输入繁体印文！" />
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="shidai" style="font-size:16px;">年代暨作者</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" id="shidai" name="shidai" type="text" placeholder="不填默认为全部！" />
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="zhulu">出处</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" id="zhulu" name="zhulu" type="text" placeholder="不填默认为全部！" />
                </div>
            </div>
            <!--
            <div class="form-group col-md-6">
                <label class="col-md-4 control-label" for="yzm">验证码</label>
                <div class="col-md-8">
                    <input class="form-control input-lg" data-val="true" data-val-required="请输入验证码！" id="yzm" name="yzm" type="text" placeholder="请输入！" />
                    <img id="valiCode" style="cursor: pointer;" src="/Home/Index/captcha" onclick="this.src='/Home/Index/captcha/t/'+Math.random()" alt="验证码" title="看不清？换一个！" height="38" />
                </div>
            </div>
            -->
            <div class="form-group col-md-12">
                <p style="text-align:center;">
                    <input type="button" id="btn_submit" value="查询" class="btn btn-lg" />&nbsp;&nbsp;<input type="reset" value="重填" class="btn btn-lg" />
                </p>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    //jQuery代码
    $(function(){
        //给查看按钮绑定点击事件
        $('#btn_submit').on('click',function(){
            var yw2_value = $("#yw2").val();
            //var yzm_value = $("#yzm").val();
            //alert(yw2_value);
            if(!yw2_value){return false;}
            //if(!yzm_value){return false;}
            $('#form_search').submit();       
        });
    });
</script>
<hr />
<footer>
    <p>&copy; 2018 - 平湖玺印篆刻博物馆</p>
</footer>
</body>
</html>